<?php
/*
* 节点模型
*/
namespace App\Model;

use Think\Model\RelationModel;

class GuideModel extends RelationModel{
	/**
	 * 获取引导图
	 */
	function getappguide(){
		$where['status'] = 1;
		$data = $this->field('url')->order('sort')->where($where)->select();
		foreach($data as $k=>$v){
			$data[$k]['url'] = "http://".$_SERVER['HTTP_HOST'].$v['url'];
		}
		return $data;
	}
}
?>